#include "guiterm.hpp"
#ifndef FRONTEND_HPP
#define FRONTEND_HPP

class Frontend
	:public QObject
{
	Q_OBJECT
public:
	Frontend();
	~Frontend();
	
	int main(int argc, char **argv);
	
	void timerChangeNotify(long next);
	
public slots:
	void focusChanged(QWidget *old, QWidget *now);
	void puttyTimerExpired();
	
protected:
	BackendConnection *backend;
	
	set<long> scheduledTimers;
};
extern Frontend *frontend;

#endif
